﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace _6055_9989_LP_Photoshop_2012_2013
{
    public partial class ParamForm : Form
    {
        private int min = 0;
        private int max = 100;
        private int initial = 0;
        public int param { set; get; }
        public ParamForm(string text)
        {
            InitializeComponent();
            this.Text = text;
            this.lbl1.Text = text;
            this.tBar.Value = this.initial;
            this.tBar.Maximum = this.max;
            this.tBar.Minimum = this.min;
            OK.DialogResult = System.Windows.Forms.DialogResult.OK;
            Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
        }

        private void tBarContrast_Scroll(object sender, EventArgs e)
        {
            this.lbl.Text = this.tBar.Value.ToString();
            this.param = this.tBar.Value;
        }

        
    }
}
